<?php

/**
 * Created by PhpStorm
 * User: 林振宇
 * Date: 2020/8/14
 * Time: 19:51
 */

namespace app\api\model;

use think\Model;
use think\Request;

class Order extends Model
{
    protected $autoWriteTimestamp = true;
    protected $createTime = 'create_time';
    protected $updateTime = 'update_time';


    public function User()
    {
        return $this->belongsTo('User', 'User_id', 'id');
    }

    public function Specs()
    {
        return $this->belongsTo('Specs', 'specs_id', 'id');
    }

}
